﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DoNet.SFExpress.Framework
{
    /// <summary>
    /// 包含 errorcode 的 Json 返回结果接口
    /// </summary>
    public interface IJsonResult
    {
        /// <summary>
        /// 返回结果代码
        /// </summary>
        string errcode { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        string errmsg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        string data { set; get; }
    }

    public class JsonResult : IJsonResult
    {
        /// <summary>
        /// 错误码
        /// </summary>
        public string errcode { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string errmsg { get; set; }
        /// <summary>
        /// 返回数据内容
        /// </summary>
        public string data { get; set; }
    }
}
